<template>
  <HomeAll v-if="isAuthHome"/>
  <HomeBase v-else/>
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { useMenuStore } from '@/plugins/store'

import HomeAll from './HomeAll.vue'
import HomeBase from './HomeBase.vue'

const menuStore = useMenuStore()

const isAuthHome = computed(() => {
  return menuStore.menus.some(i => i.menuId === 10000)
})
</script>
